package com.deveye.model;

/**
 * Created by Administrator on 2017/7/12.
 */
public class QRCode {
    private String expireSeconds;
    private String actionName;
    private String actionInfo;
    private String sceneId;
    private String sceneStr;

    private QRCode(Builder builder) {
        setExpireSeconds(builder.expireSeconds);
        setActionName(builder.actionName);
        setActionInfo(builder.actionInfo);
        setSceneId(builder.sceneId);
        setSceneStr(builder.sceneStr);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getExpireSeconds() {
        return expireSeconds;
    }

    public void setExpireSeconds(String expireSeconds) {
        this.expireSeconds = expireSeconds;
    }

    public String getActionName() {
        return actionName;
    }

    public void setActionName(String actionName) {
        this.actionName = actionName;
    }

    public String getActionInfo() {
        return actionInfo;
    }

    public void setActionInfo(String actionInfo) {
        this.actionInfo = actionInfo;
    }

    public String getSceneId() {
        return sceneId;
    }

    public void setSceneId(String sceneId) {
        this.sceneId = sceneId;
    }

    public String getSceneStr() {
        return sceneStr;
    }

    public void setSceneStr(String sceneStr) {
        this.sceneStr = sceneStr;
    }

    public static final class Builder {
        private String expireSeconds;
        private String actionName;
        private String actionInfo;
        private String sceneId;
        private String sceneStr;

        private Builder() {
        }

        public Builder expireSeconds(String val) {
            expireSeconds = val;
            return this;
        }

        public Builder actionName(String val) {
            actionName = val;
            return this;
        }

        public Builder actionInfo(String val) {
            actionInfo = val;
            return this;
        }

        public Builder sceneId(String val) {
            sceneId = val;
            return this;
        }

        public Builder sceneStr(String val) {
            sceneStr = val;
            return this;
        }

        public QRCode build() {
            return new QRCode(this);
        }
    }
}
